﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Style TargetType="Button" x:Key="ImageButton">
        <Setter Property="HorizontalAlignment">
            <Setter.Value>Center</Setter.Value>
        </Setter>
        <Setter Property="VerticalAlignment">
            <Setter.Value>Center</Setter.Value>
        </Setter>
        <Setter Property="Width">
            <Setter.Value>85</Setter.Value>
        </Setter>
        <Setter Property="Height">
            <Setter.Value>70</Setter.Value>
        </Setter>
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect/>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="Button" x:Key="ToolBarButton">
        <Setter Property="Width">
            <Setter.Value>25</Setter.Value>
        </Setter>
        <Setter Property="Height">
            <Setter.Value>25</Setter.Value>
        </Setter>
    </Style>
    <DataTemplate x:Key="ImageListTemplate">
        <Border HorizontalAlignment="Center" BorderThickness="1" BorderBrush="Black">
            <StackPanel HorizontalAlignment="Center" Orientation="Vertical">
                <TextBlock Text="{Binding Path=DisplayedLabel}" Width="{Binding ElementName=RightPanel,Path=Width}" ToolTip="{Binding Path=DisplayedLabel}"></TextBlock>
                <Image HorizontalAlignment="Center" Source="{Binding Path=TempThumbnailPath}" Height="65" ToolTip="{Binding Path=DisplayedLabel}"/>
            </StackPanel>
        </Border>
    </DataTemplate>
    <DataTemplate x:Key="HorizontalImageListTemplate">
        <Border HorizontalAlignment="Center" BorderThickness="1" BorderBrush="Black">
            <StackPanel HorizontalAlignment="Center" Orientation="Vertical">
                <TextBlock Text="{Binding Path=DisplayedLabel}" Width="{Binding ElementName=DeletePageButton,Path=Width}" ToolTip="{Binding Path=DisplayedLabel}"></TextBlock>
                <Image HorizontalAlignment="Center" Source="{Binding Path=TempThumbnailPath}" Height="65" ToolTip="{Binding Path=DisplayedLabel}"/>
            </StackPanel>
        </Border>
    </DataTemplate>
   <Style TargetType="Button" x:Key="ColorButton">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Border Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="5,5,5,5">
                        <Label HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}" Foreground="White"></Label>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="ListBox" x:Key="HorizontalListBox">
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center"></StackPanel>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>